package cn.youruan.demo.service.impl;



import cn.youruan.demo.domain.Log;
import cn.youruan.demo.domain.Lottery;
import cn.youruan.demo.mapper.LogMapper;
import cn.youruan.demo.mapper.LotteryMapper;
import cn.youruan.demo.service.ILogService;
import cn.youruan.demo.service.ILotteryService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;
import java.util.List;

@Service
public class LotteryServiceImpl extends ServiceImpl<LotteryMapper, Lottery> implements ILotteryService {

    @Autowired
    private LotteryMapper lotteryMapper;

    @Override
    public List<Lottery> sortByActiveUser(LocalDateTime startTime,LocalDateTime endTime) {
        return lotteryMapper.sortByActiveUser(startTime,endTime);
    }
}
